package com.jinlia.show.gateway.config;

import com.jinlia.show.gateway.plugin.filter.SecurityGlobalFilter;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class AuthFilter {

    /**
     * 全局pre过滤器
     *
     * @return
     */
    @Bean
    public GlobalFilter securityGlobalFilter() {
        return new SecurityGlobalFilter();
    }
}
